<template>
  <div>
    <investigate-approve
      :query-id="queryId"
      ref="invest"
      :view-mode="true"
      v-if="+processStatus === 0"
    ></investigate-approve>
    <!-- 权限外 -->
    <investigate-out-approve
      v-if="+processStatus === 1"
      ref="outinvest"
      :view-mode="true"
      :query-id="queryId"
    ></investigate-out-approve>
  </div>
</template>

<script>
import InvestigateApprove from '@/credit/views/province/mission/components/InvestigateApprove'
import InvestigateOutApprove from '@/credit/views/province/mission/components/InvestigateOutApprove'
export default {
  props: {
    queryId: String,
    processStatus: {
      type: String,
      default: '0',
    },
  },
  components: {
    InvestigateApprove,
    InvestigateOutApprove,
  },
  data() {
    return {}
  },

  created() {},
  methods: {
    getData() {
      if (+this.processStatus === 1) {
        this.$nextTick(() => {
          this.$refs.outinvest.getReviewData()
        })
      } else {
        this.$nextTick(() => {
          this.$refs.invest.getRelatedData()
        })
      }
    },
  },
}
</script>
<style lang="scss" scoped></style>
